import React from "react";

// // React 16.x / 17.x 写法
// import ReactDOM from "react-dom";
// ReactDOM.render(<h1>Hello</h1>, document.getElementById("root"));

// React 18.x 写法
import ReactDOM from "react-dom/client";
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<h1>Hello React.js</h1>);
